home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / FileBrowser / MyNXBrowserCell.h < prev    next >
Encoding:
Text File  |  1995-04-12  |  1.1 KB  |  36 lines

  1. //        Written by Todd Thomas Copyright (c) 1995 by Todd Thomas.
  2. //                Version 1.0.  All rights reserved.
  3. //
  4. //        This notice may not be removed from this source code.
  5. //
  6. //    This object is included in the MiscKit by permission from the author
  7. //    and its use is governed by the MiscKit license, found in the file
  8. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  9. //    for a list of all applicable permissions and restrictions.
  10. //    
  11.  
  12. /**********************************************************************
  13.   CLASS:            MyNXBrowserCell
  14.   
  15.   Simply adds the ability of each cell to know what MiscFile they are
  16.   representing. Therefore in the browser when a cell is clicked on, you
  17.   can immediately lookup it's children (if any) or anything else you 
  18.   need to know about.
  19.   
  20.   See MyController.m (BrowserDelegate) -browser:fillMatrix:inColumn:
  21.   
  22.  ***********************************************************************/
  23. #import <appkit/appkit.h>
  24.  
  25.  
  26. @interface MyNXBrowserCell : NXBrowserCell
  27. {
  28.     id  miscFile;        // points to the MiscFile that the cell represents
  29. }
  30.  
  31. - init;
  32. - setFile: aFile;
  33. - file;
  34.  
  35. @end
  36.